package com.example.javasample.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.annotations.Param;

import java.io.Serial;

/**
 * 标签
 *
 * @author Kylin
 */
@Schema(name = "标签", description = "标签对象")
@TableName("tag")
@Data
@EqualsAndHashCode(callSuper = true)
public class TagDO extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "标签ID")
    private Long id;

    @Schema(description = "标签名称")
    private String name;

    public TagDO(@Param("tagId") Long tagId, @Param("tagName") String tagName) {
        this.id = tagId;
        this.name = tagName;
    }

}
